﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using Windows.Graphics.Imaging;
using Windows.Storage.Streams;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media.Imaging;

namespace EmprestaAE.MVVM.Model
{
    [KnownType(typeof(EmprestaAE.MVVM.Model.Borrowing))]
    [DataContractAttribute]
    public class Person : ModelBase
    {
        [DataMember()]
        private string name;
        
        public string Name
        {
            get { return name; }
            set { if (name != value) { name = value; RaisePropertyChanged("Name"); } }
        }

        [DataMember()]
        private string email;
        
        public string Email
        {
            get { return email; }
            set { if (email != value) { email = value; RaisePropertyChanged("Email"); } }
        }

        [DataMember()]
        private byte[] imageStream;

        public byte[] ImageStream
        {
            get { return imageStream; }
            set { if (imageStream != value) { imageStream = value; RaisePropertyChanged("ImageStream"); } }
        }

        [DataMember()]
        private string facebook;
        
        public string Facebook
        {
            get { return facebook; }
            set { if (facebook != value) { facebook = value; RaisePropertyChanged("Facebook"); } }
        }

        [DataMember()]
        private string twitter;
        
        public string Twitter
        {
            get { return twitter; }
            set { if (twitter != value) { twitter = value; RaisePropertyChanged("Twitter"); } }
        }

        [DataMember()]
        private string windowslive;
        
        public string WindowsLive
        {
            get { return windowslive; }
            set { if (windowslive != value) { windowslive = value; RaisePropertyChanged("WindowsLive"); } }
        }

        [DataMember()]
        private string phone;
        
        public string Phone
        {
            get { return phone; }
            set { if (phone != value) { phone = value; RaisePropertyChanged("Phone"); } }
        }

        public Person(){ }
    }
}
